#ifndef _DEVICE_MANAGER_H_
#define _DEVICE_MANAGER_H_

#ifdef _WIN32
#pragma once
#endif

#include <d3dx9.h>

#include "constants.h"

class CDeviceManager
{
public:
    static CDeviceManager *getInstance();

    LPDIRECT3DDEVICE9 getDevice() const;
    void setDevice(LPDIRECT3DDEVICE9 pDevice);

    int getCheatMode() const;
    void setCheatMode(int cheatMode);

private:
    LPDIRECT3DDEVICE9 m_pDevice;

    int m_nCheatMode;

    CDeviceManager();
    CDeviceManager(const CDeviceManager &rhs) {}
    CDeviceManager &operator=(const CDeviceManager &rhs) {}
    ~CDeviceManager();
};

#endif